#pragma once

#include <linux/align.h>
#include <riscv/thread-size.h>
#include <asm/ptrace.h>

#define STACK_ALIGN 16

#define cpu_relax()

#define task_pt_regs(tsk)                                    \
    ((struct pt_regs *)(task_stack_page(tsk) + THREAD_SIZE - \
                        ALIGN(sizeof(struct pt_regs), STACK_ALIGN)))
